﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphicsFramework.Drawing.Miscellaneous
{
    public class Guide : Drawing.Primitive.Rectangle
    {
        public Guide(Entity.Point2I point1, Entity.Point2I point2)
            : base(point1, point2)
        {
            properties = new Property.DrawProperty(new Property.ColorProperty(255, 255, 255), new Property.ColorProperty(0, 0, 255), 1, false, false, true);
        }

        public override void OnRender(GraphicsFramework graphics)
        {
            graphics.BasicRectangle(properties, new Entity.Point2F((points[2].X + points[0].X)/2, (points[2].Y + points[0].Y)/2) , points[2].X - points[0].X, points[2].Y - points[0].Y);
        }
    }
}
